package cn.wolfcode.meiju;

import lombok.Getter;

@Getter
public enum  NoticeStatusEnum {

    UNRGET(1,"紧急"),
    important(2,"重要"),
    ordinary(3,"普通");
    private String name;
    private Integer value;

     NoticeStatusEnum(Integer value,String name) {
        this.name = name;
        this.value = value;
    }

    public static  String findName(Integer value){
        NoticeStatusEnum[] values = NoticeStatusEnum.values();
        for (NoticeStatusEnum n : values){
            if (n.getValue() == value){
                return n.getName();
            }
        }
        return null;

    }
}
